package com.iisigroup.adrclient.common;

import java.util.Calendar;

import org.apache.commons.lang3.StringUtils;

public class DateUtils {
	private static final Calendar calendar = Calendar.getInstance();
	
	public static String getCurrentDate() {
		final Integer monthLen = 2;
		final Integer dayLenth = 2;
		final String padChar = "0";
		
		Integer month = calendar.get(Calendar.MONTH) + 1;
		Integer day = calendar.get(Calendar.DAY_OF_MONTH);
		
		String result = StringUtils.leftPad(month.toString(), monthLen, padChar);
		result += StringUtils.leftPad(day.toString(), dayLenth, padChar);
		
		return result;
	}
}
